home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
- <stack>
- <name>in</name>
- <id>-1</id>
- <cardCount>3</cardCount>
- <cardID>2969</cardID>
- <listID>2387</listID>
- <cantModify><false /></cantModify>
- <cantDelete><false /></cantDelete>
- <cantAbort><false /></cantAbort>
- <cardSize>
- <width>416</width>
- <height>296</height>
- </cardSize>
- <script>--
- -- Demo stack for Help XFCN
- --
- -- 12-04-90 JRP original
- -- 01-15-91 JRP add returnKey handler (for 7.0b3 testing)
- -- 01-18-91 JRP add TurnOn and TurnOff
- -- 02-08-91 JRP cosmetic touch-up to scripts
- -- 02-21-91 JRP add advanced feature card (1.2d1)
- --
- -- XFCN calls are located only in this script.
- -- The scripts in other objects
- -- reference the handlers located here.
- --
- on TurnOn
- put Help("On") into cd fld "helpResult"
- end TurnOn
-
- on TurnOff
- put Help("Off") into cd fld "helpResult"
- end TurnOff
-
- on ShowBalloon helpMessage, tip
- put Help("ShowBalloon", helpMessage, tip)¬
- into cd fld "helpResult"
- Be853Free helpMessage, tip
- end ShowBalloon
-
- on ShowIfBalloon helpMessage, tip
- put Help("ShowIfBalloon", helpMessage, tip)¬
- into cd fld "helpResult"
- Be853Free helpMessage, tip
- end ShowIfBalloon
-
- on ShowBalloonWithHotRect helpMessage, tip, hotRect
- put Help("ShowBalloon", helpMessage, tip, hotRect)¬
- into cd fld "helpResult"
- end ShowBalloonWithHotRect
-
- on ShowAutoBalloon helpMessage
- if the hilite of cd btn "Auto-Show" then
- put Help("ShowBalloon", helpMessage, prettyTip())¬
- into cd fld "helpResult"
- Be853Free helpMessage, prettyTip()
- end if
- end ShowAutoBalloon
-
- on Be853Free helpMessage, tip
- -- a -853 means that the Help Manager detected a
- -- rapid cursor movement and, thinking that the
- -- cursor was just 'passing thru', did not display
- -- the balloon. We try again until successful.
- repeat until "-853" is not in cd fld "helpResult"
- put Help("ShowBalloon", helpMessage, tip)¬
- into cd fld "helpResult"
- end repeat
- end Be853Free
-
- on RemoveBalloon
- put Help("RemoveBalloon") into cd fld "helpResult" of first card
- end RemoveBalloon
-
- on RemoveAutoBalloon
- if the hilite of cd btn "Auto-Show" of the first card then RemoveBalloon
- end RemoveAutoBalloon
-
- function prettyTip
- -- create a pretty location for the balloon tip
- -- use lower-right corner of button with a wee tweak
- -- The tip can also be rotated around the balloon
- -- by selecting a variant. This is not currently
- -- accessible from the XFCN, but it can be done....
- -- If you have read this far, then you might be
- -- interested. Contact John if you are.
- put the rect of the target into targetRect
- put item 3 of targetRect & "," & item 4 of targetRect into tip
- subtract 10 from item 1 of tip
- subtract 10 from item 2 of tip
- return tip
- end prettyTip</script>
- <background id="2576" file="background_2576.xml" name="" />
- <card id="2969" file="card_2969.xml" marked="false" name="Basic" owner="2576" />
- <card id="3977" file="card_3977.xml" marked="false" name="Advanced" owner="2576" />
- <card id="3607" file="card_3607.xml" marked="false" name="Release Notes" owner="2576" />
- </stack>
-